package com.oa.service;

import com.oa.dao.EmpInfoDao;
import com.oa.pojo.EmpInfo;
import com.oa.utils.MybatisUtils;

import java.util.List;

public class EmpInfoService {
    public List<EmpInfo> selectAll() {
        return (List<EmpInfo>) MybatisUtils.executeQuery(sqlSession -> {
            return sqlSession.getMapper(EmpInfoDao.class).getAll();
        });
    }
}
